import requests

url = "http://httpbin.org/get"
data = {"key":"value","abc":"123"}

response = requests.get(url,data)
print(response.text)


url = "http://httpbin.org/post"
data = {"key":"value","abc":"456"}

response = requests.post(url,data)
print(response.json())
